﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace GDISim._Infrastructure._Software._Operation
{
    public class OperationFrequency
    {
        #region Members
        private OperationType operation;
        private FrequencyType type;
        private double frequency;
        private double filesize;
        #endregion

        #region Constructor
        public OperationFrequency ()
        {
        }
        #endregion

        #region Properties
        [XmlAttribute("Operation")]
        public OperationType Operation
        {
            get
            {
                return this.operation;
            }
            set
            {
                this.operation = value;
            }
        }
        [XmlAttribute("Type")]
        public FrequencyType Type
        {
            get
            {
                return this.type;
            }
            set
            {
                this.type = value;
            }
        }
        [XmlAttribute("Frequency")]
        public double Frequency
        {
            get
            {
                return this.frequency;
            }
            set
            {
                this.frequency = value;
            }
        }
        [XmlAttribute("Filesize")]
        public double Filesize
        {
            get
            {
                return this.filesize;
            }
            set
            {
                this.filesize = value;
            }
        }
        #endregion

        #region Methods

        #endregion

        #region Subclass
        public enum FrequencyType
        {
            INTERVAL,
            GAP
        }
        #endregion
    }
}
